package com.hfi.restful.util;

import org.springframework.util.DigestUtils;

/**
 * @author ChangLiang
 * @date 2019/9/5
 */
public final class Utils {

    public static String generateDefaultPassword() {
        String defaultPassword = String.valueOf(System.currentTimeMillis() + Math.random());
        return DigestUtils.md5DigestAsHex(defaultPassword.getBytes()).substring(0, 16);
    }

}
